const show = document.querySelector('.show')
const infoTitle = document.querySelector('.info-title')




const res = ajax({
    url: '/aa',
    data: `ids=100162803&with_stock=true&with_spu=true`,
    dataType: 'json',
    success(res) {
    console.log(res);
    res.data.list.forEach(item => {
        const height = item.shop_info.ali_image * 218 / item.shop_info.ali_image
        const str = `
            <img src="${item.shop_info.ali_image}" alt="">
        `
        show.innerHTML += str
    })
    }
})

const z1 = ajax({
    url: '/aa',
    data: `ids=100162803&with_stock=true&with_spu=true`,
    dataType: 'json',
    success(z1) {
    console.log(z1);
    z1.data.list.forEach(item => {
        const height = item.shop_info.ali_image * 218 / item.shop_info.ali_image
        const str = `
            <h1>${item.shop_info.title}</h1>
            <h2>${item.shop_info.sub_title}</h2>
        `
        infoTitle.innerHTML += str
    })
    }
})
